﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/admin/Supplier.master"
    AutoEventWireup="true" CodeFile="SupplierItem.aspx.cs" Inherits="Trade_Events_event_item" %>

<%@ MasterType VirtualPath="~/masterPage/admin/Supplier.master" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
    </telerik:RadAjaxLoadingPanel>  
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlFeedback">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlFeedback"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="radGridMainlist">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGridMainlist"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="pnlFeedback" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rptBindInquiry">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rptBindInquiry"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <table>
        <tr>
            <td>
                询盘状态
            </td>
        </tr>
        <tr style="background-color: Yellow">
            <td>
                历史报价
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadGrid ID="radGridMainList" runat="server" AutoGenerateColumns="False"
                    DataSourceID="SqlDataSource1" GridLines="None" OnItemCommand="radGridMainList_ItemCommand">
                    <HierarchySettings CollapseTooltip="收起" ExpandTooltip="查看详情" />
                    <MasterTableView DataKeyNames="QuoteID,InquiryID,QuoteStatus" DataSourceID="SqlDataSource1"
                        ShowHeadersWhenNoRecords="false" NoMasterRecordsText="您尚未对该询盘进行报价" AllowMultiColumnSorting="false">
                        <Columns>
                            <telerik:GridTemplateColumn Groupable="False" AllowFiltering="false" UniqueName="QuoteID"
                                DataField="QuoteID" DataType="System.Guid" HeaderText="">
                                <HeaderStyle Width="75px"></HeaderStyle>
                                <ItemStyle Height="35px"></ItemStyle>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtQuote" runat="server" Text='<%# GetEditQuoteText(DataBinder.Eval(Container.DataItem, "QuoteStatus").ToString(),"Text") %>'
                                        CommandName='<%# GetEditQuoteText(DataBinder.Eval(Container.DataItem, "QuoteStatus").ToString(),"CommandName") %>'
                                        Visible='<%# EnableEditQuote(DataBinder.Eval(Container.DataItem, "QuoteStatus").ToString()) %>'
                                        CommandArgument='<%# DataBinder.Eval(Container.DataItem, "QuoteID") %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="CompanyName" HeaderText="公司名称" SortExpression="CompanyName"
                                UniqueName="CompanyName">
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn UniqueName="Quantity" Groupable="False" HeaderText="数量">
                                <HeaderStyle Width="75px"></HeaderStyle>
                                <ItemStyle Height="35px"></ItemStyle>
                                <ItemTemplate>
                                    <asp:Literal ID="ltlQuantity1" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity1") %>'
                                        runat="server"></asp:Literal><br />
                                    <asp:Literal ID="ltlQuantity2" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity2") %>'
                                        runat="server"></asp:Literal><br />
                                    <asp:Literal ID="ltlQuantity3" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity3") %>'
                                        runat="server"></asp:Literal>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="TotalAmount" Groupable="False" HeaderText="总价">
                                <HeaderStyle Width="75px"></HeaderStyle>
                                <ItemStyle Height="35px"></ItemStyle>
                                <ItemTemplate>
                                    <asp:Literal ID="ltlAmount1" Text='<%# DataBinder.Eval(Container.DataItem, "TotalAmount").ToString().Split("|".ToCharArray())[0] %>'
                                        runat="server"></asp:Literal><br />
                                    <asp:Literal ID="ltlAmount2" Text='<%# DataBinder.Eval(Container.DataItem, "TotalAmount").ToString().Split("|".ToCharArray())[1] %>'
                                        runat="server"></asp:Literal><br />
                                    <asp:Literal ID="ltlAmount3" Text='<%# DataBinder.Eval(Container.DataItem, "TotalAmount").ToString().Split("|".ToCharArray())[2] %>'
                                        runat="server"></asp:Literal>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="QuoteStatus" Groupable="False" HeaderText="信息状态">
                                <HeaderStyle Width="75px"></HeaderStyle>
                                <ItemStyle Height="35px"></ItemStyle>
                                <ItemTemplate>
                                    <asp:Literal ID="ltlQuoteStatus" Text='<%# ParseQuoteStatus(DataBinder.Eval(Container.DataItem, "QuoteStatus").ToString()) %>'
                                        runat="server"></asp:Literal>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                        <NestedViewSettings DataSourceID="SqlDataSource3">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="QuoteID" MasterKeyField="QuoteID" />
                            </ParentTableRelation>
                        </NestedViewSettings>
                        <NestedViewTemplate>
                            <telerik:RadDockLayout ID="RadDockLayout2" runat="server">
                                <table width="600">
                                    <tr>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadDockZone ID="RadDockZone4" runat="server">
                                                <telerik:RadDock ID="RadDock4" runat="server" Width="600px" Title="供应商" CloseText="关闭"
                                                    CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                    Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                    <ContentTemplate>
                                                        名称：<asp:HyperLink ID="lnkCompany" runat="server" Text='<%#Eval("CompanyName") %>'
                                                            NavigateUrl='<%# Page.ResolveUrl("~/Trade/Inbox/MailBoxList.aspx?id=") + Eval("CompanyID").ToString() %>'
                                                            Target="_blank" />(点击此处发邮件)<br />
                                                        地址：<asp:Label ID="lblAddress" Text='<%#Eval("CompanyAddress") %>' runat="server"></asp:Label><br />
                                                        电话：<asp:Label ID="lblPhone" Text='<%#Eval("OfficePhone") %>' runat="server"></asp:Label><br />
                                                        电子邮箱：<asp:Label ID="lblEmail" Text='<%#Eval("UserName") %>' runat="server"></asp:Label><br />
                                                        报价日期：<asp:Label ID="lblCreateDate" Text='<%# String.Format("{0:d}", Eval("CreateDate")) %>'
                                                            runat="server"></asp:Label>
                                                    </ContentTemplate>
                                                </telerik:RadDock>
                                            </telerik:RadDockZone>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadDockZone ID="RadDockZone3" runat="server">
                                                <telerik:RadDock ID="RadDock3" runat="server" Title="报价单" Width="600px" CloseText="关闭"
                                                    CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                    Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                    <ContentTemplate>
                                                        <table>
                                                            <tr>
                                                                <td colspan="8">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    采购数量：
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Quantity1").ToString() + Eval("Unit").ToString()%>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Quantity2").ToString() + Eval("Unit").ToString()%>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Quantity3").ToString() + Eval("Unit").ToString()%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    单件报价：
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("UnitPriceByQty").ToString().Split("|".ToCharArray())[0]%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("UnitPriceByQty").ToString().Split("|".ToCharArray())[1]%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("UnitPriceByQty").ToString().Split("|".ToCharArray())[2]%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    运输费用：
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("CostOfDeliverByQty").ToString().Split("|".ToCharArray())[0]%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("CostOfDeliverByQty").ToString().Split("|".ToCharArray())[1]%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("CostOfDeliverByQty").ToString().Split("|".ToCharArray())[2]%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                                    其他：<%#Eval("OtherExpenseName").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("OtherExpenseByQty").ToString().Split("|".ToCharArray())[0]%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("OtherExpenseByQty").ToString().Split("|".ToCharArray())[1]%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("OtherExpenseByQty").ToString().Split("|".ToCharArray())[2]%>
                                                                </td>
                                                            </tr>
                                                            <tr style="background-color: Gray">
                                                                <td>
                                                                    总计：
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("TotalAmount").ToString().Split("|".ToCharArray())[0]%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("TotalAmount").ToString().Split("|".ToCharArray())[1]%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("Currency").ToString()%>
                                                                </td>
                                                                <td>
                                                                    <%#Eval("TotalAmount").ToString().Split("|".ToCharArray())[2]%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    运输说明：
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                    其他说明数量：
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">
                                                                    <%#Eval("DeliveryComment").ToString()%>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td colspan="3">
                                                                    <%#Eval("Comment").ToString()%>
                                                                </td>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="4">
                                                                    最后交货日期：<%#String.Format("{0:d}", Eval("DeliveryDate"))%>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ContentTemplate>
                                                </telerik:RadDock>
                                                <telerik:RadDock ID="RadDock5" runat="server" Title="其他" Width="600px" Height="50"
                                                    CloseText="关闭" CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开"
                                                    EnableRoundedCorners="true" Collapsed="false" Resizable="false" Pinned="true"
                                                    EnableDrag="false">
                                                    <ContentTemplate>
                                                        <table>
                                                            <colgroup>
                                                                <col width="250" />
                                                                <col width="200" />
                                                                <col width="250" />
                                                            </colgroup>
                                                            <tr>
                                                                <td>
                                                                    报价有效期限
                                                                    <asp:Label ID="lblExpireDate" Text='<%#String.Format("{0:d}", Eval("ExpireDate")) %>'
                                                                        runat="server"></asp:Label>
                                                                </td>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                    报价币种:
                                                                    <asp:Label ID="lblCurrency" Text='<%#Eval("Currency") %>' runat="server"></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ContentTemplate>
                                                </telerik:RadDock>
                                            </telerik:RadDockZone>
                                        </td>
                                    </tr>
                                </table>
                            </telerik:RadDockLayout>
                        </NestedViewTemplate>
                    </MasterTableView>
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="pnlFeedback" runat="server" Visible="false">
                    该询盘已经成功授盘于以下供应商，建议您在采购完成之后对该供应商进行反馈与评价
                    <br />
                    <br />
                    您给予供应商的反馈为：
                    <telerik:RadRating ID="rRatingFromBuyer" runat="server" ItemCount="5" SelectionMode="Continuous"
                        Precision="Exact" OnRate="rRatingFromBuyer_Rate" Skin="Default" />
                    <br />
                    差评必须提交补充说明，否则将无法提交！本网站将对评价进行公正的审核！
                    <br />
                    <asp:PlaceHolder ID="phMessage" runat="server"></asp:PlaceHolder>
                    <br />
                    补充说明：<telerik:RadTextBox ID="rtbRateComment" runat="server" TextMode="MultiLine"
                        Width="350" Height="50" MaxLength="250" EmptyMessage="您的补充说明将帮助供应商及本网站改进服务质量">
                    </telerik:RadTextBox>
                    <br />
                    <asp:LinkButton ID="lbtSubmitFeedback" runat="server" CausesValidation="false" CommandName="SubmitFeedback"
                        Text="提交评价" Click="lbtSubmitFeedback_Click" OnClick="lbtSubmitFeedback_Click" />
                </asp:Panel>
                <asp:Literal ID="ltrEventID" runat="server" Visible="false"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Repeater ID="rptBindInquiry" runat="server" DataSourceID="SqlDataSource2" OnItemCommand="rptBindInquiry_ItemCommand">
                    <ItemTemplate>
                        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
                            <table>
                                <tr style="background-color: Yellow">
                                    <td>
                                        询价单
                                    </td>
                                    <td align="right">
                                        <asp:Button ID="btnQuote" runat="server" Text="马上报价" CommandName="Quote" CommandArgument='<%# Eval("InquiryID") %>'
                                            Visible='<%# EnableQuote(Eval("InquiryStatus").ToString())%>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align: top">
                                        <telerik:RadDockZone ID="RadDockZone2" runat="server" Orientation="Vertical" Width="400px"
                                            MinHeight="400px">
                                            <telerik:RadDock ID="RadDock1" runat="server" Title="技术细节" Width="400px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1" cellspacing="1" cellpadding="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="150" />
                                                            <col width="250" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                采购类型
                                                            </td>
                                                            <td>
                                                                <%#Eval("InquiryType") == "1"? "通用零部件采购": "图纸加工"%>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件类型
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal2" Text='<%# GetProcessName(Eval("PartModelName").ToString(),Convert.ToInt32(Eval("InquiryType").ToString())) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件名称
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="ltlPartName" Text='<%# Eval("PartName") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件编号
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal3" Text='<%# Eval("PartNumber") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件模型/图纸
                                                            </td>
                                                            <td>
                                                                <asp:HyperLink  ID="lbtDownloadDwg" runat="server" CommandName="LoadDwg" CommandArgument='<%# Eval("PartModelFile") %>'
                                                                    Enabled='<%# Eval("PartModelFile") == ""? false: true%>' ForeColor="Blue" Font-Underline="true"
                                                                    Text="下载"  NavigateUrl='<%# Eval("PartModelFile")%>'/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件材料
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal5" Text='<%# Eval("PartMaterial") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件说明
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal6" Text='<%# Eval("PartDescription") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock6" runat="server" Title="商务细节" Width="400px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1" cellspacing="1" cellpadding="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="150" />
                                                            <col width="250" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                要求报价的采购数量
                                                            </td>
                                                            <td>
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            数量1
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal7" Text='<%# Eval("Quantity1") %>' runat="server"></asp:Literal>
                                                                        </td>
                                                                        <td>
                                                                            数量2
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal8" Text='<%# Eval("Quantity2") %>' runat="server"></asp:Literal>
                                                                        </td>
                                                                        <td>
                                                                            数量3
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal9" Text='<%# Eval("Quantity3") %>' runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                采购单位
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal10" Text='<%# Eval("Unit") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                报价期限
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal11" Text='<%#String.Format("{0:d}", Eval("ExpireDate")) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                授盘期限
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal12" Text='<%#String.Format("{0:d}", Eval("AssignDate")) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                交货期限
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal13" Text='<%#String.Format("{0:d}", Eval("DeliveryDate")) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                预付额度
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal14" Text='<%# Eval("PrepaidAmount") + "% 总额" %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                付款方式
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal15" Text='<%# Eval("PaymentMethod") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                报价币种
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal16" Text='<%# GetCurrencyName(Eval("Currency").ToString()) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock7" runat="server" Title="运输细节" Width="400px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1" cellspacing="1" cellpadding="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="150" />
                                                            <col width="250" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                运输费用
                                                            </td>
                                                            <td>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                详细地址
                                                            </td>
                                                            <td>
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            街道
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal21" Text='<%# Eval("DeliveryCity") %>' runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            地区
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal20" Text='<%# Eval("DeliveryProvince") + "  " + Eval("DeliveryCity") %>'
                                                                                runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            国家
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal19" Text='<%# Eval("DeliveryCountry") %>' runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            邮政编码
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal18" Text='<%# Eval("DeliveryPostcode") %>' runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                运输说明
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal17" Text='<%# Eval("DeliveryComment") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock8" runat="server" Title="其他" Width="400px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1" cellspacing="1" cellpadding="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="150" />
                                                            <col width="250" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                询价目的
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal23" Text='<%# Eval("PurchasePurpose") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件用途
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal22" Text='<%# Eval("PartWhereUsed") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                        </telerik:RadDockZone>
                                    </td>
                                    <td style="vertical-align: top">
                                        <telerik:RadDockZone ID="RadDockZone1" runat="server" Orientation="Vertical" Width="300px"
                                            MinHeight="400px">
                                            <telerik:RadDock ID="RadDock2" runat="server" Title="采购商信息" Width="300px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="100" />
                                                            <col width="200" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                采购商星级
                                                            </td>
                                                            <td>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                采购商名称
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal25" Text='<%# Eval("CompanyName") %>' runat="server"></asp:Literal><br />
                                                                 <asp:Literal ID="PUerid" Text='<%# Eval("UserID") %>' runat="server"  Visible="false"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                采购商地址
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal1" Text='<%# Eval("CompanyLocation") %>' runat="server"></asp:Literal><br />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                注册时间
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal24" Text='<%# String.Format("{0:d}",Eval("CompanyRegDate")) %>'
                                                                    runat="server"></asp:Literal><br />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock9" runat="server" Title="零件图片" Width="300px" Height="200px"
                                                CloseText="关闭" CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开"
                                                EnableRoundedCorners="true" Collapsed="false" Resizable="false" Pinned="true"
                                                EnableDrag="false">
                                                <ContentTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <!--delete by jiang
                                <img src='<--%# Page.ResolveUrl((Eval("PartThumbnail") == ""? "icon_noimage.jpg": Eval("PartThumbnail"))） %>' alt="零件图片" />
                                -->
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock10" runat="server" Title="描述与附件" Width="300px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1">
                                                        <tr>
                                                            <td>
                                                                <asp:Literal ID="Literal26" Text='<%# Eval("RefAttachment") %>' runat="server"></asp:Literal><br />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                        </telerik:RadDockZone>
                                    </td>
                                </tr>
                            </table>
                        </telerik:RadDockLayout>
                    </ItemTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XunPanConnectionString %>"
        SelectCommand="SELECT * FROM [vw_XPInquiryQuotes] WHERE ([InquiryID] = @InquiryID and [gysid]=@gysid  )">
        <SelectParameters>
            <asp:Parameter Name="InquiryID" DbType="Guid" />
           <asp:Parameter Name="gysid" DbType="Guid" />
           
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XunPanConnectionString %>"
        SelectCommand="SELECT * FROM [vw_XPInquiryDetail] WHERE ([InquiryID] = @InquiryID)">
        <SelectParameters>
            <asp:Parameter Name="InquiryID" DbType="Guid" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:XunPanConnectionString %>"
        SelectCommand="SELECT * FROM [vw_XPQuoteDetail] WHERE ([QuoteID] = @QuoteID)">
        <SelectParameters>
            <asp:Parameter Name="QuoteID" DbType="Guid" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
